package com.tang.model.vistor;

import lombok.Data;

import java.util.Random;

/**
 * @Author tangyuan2meicloud.com
 * @DATE 2021/9/8 7:53
 * @Desc
 * @Remarks
 */
@Data
public abstract class IEmployee {

    private String name;
    private Integer kpi;

    public IEmployee(String name) {
        this.name = name;
        kpi = new Random().nextInt(10);
    }

    public abstract void accept(IVisitor visitor);
}
